package predicatesAndQuerys;

import logicaDePredicados.LogicPredicate;

import com.db4o.query.Predicate;

public class RetrieveALogicPredicate extends Predicate<LogicPredicate<?>> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static LogicPredicate<?> toRetrieve;
	public RetrieveALogicPredicate (LogicPredicate<?> aPredicate){
		super();
		toRetrieve=aPredicate;
		
	}
	@Override
	public boolean match(LogicPredicate<?> candidate) {
		
		return candidate.equals(toRetrieve);
	}

}
